
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

public final class HackSystem {

 

    /** Don't let anyone instantiate this class */
    private HackSystem() {
    }

    private static ByteArrayOutputStream bos = new ByteArrayOutputStream();
    
    public static String getSystemOutput(){
    	return bos.toString();
    }
    
    public static void resetOutput(){
    	bos.reset();
    }
    

    public final static PrintStream out = new PrintStream(bos);

    public final static PrintStream err = out;
    
    
 
}
